//
//  DMCommon.h
//  OrderOnline
//
//  Created by YAPPA_3 on 11/30/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

typedef enum
{
	URLPATH_TYPE_NORMAL,			
	URLPATH_TYPE_HTTP,				
	URLPATH_TYPE_LOCALPAGE,			
	URLPATH_TYPE_RESOURCE,			
	URLPATH_TYPE_DETAILHTML,		
} URLPATH_TYPE;

//------------------------------------------------------------------------------

NSString* createAbsolutePath( NSString* path );
URLPATH_TYPE checkURLPathType( NSString* path );
int getPageNoFromPageLink( NSString* path );
NSString* getResourceNameFromResourceLink( NSString* path );
NSArray* getMidAndPidFromDetailLink( NSString* path );
NSString* getBaseNameFromProduceId( NSString* pid );
NSString* getDetailHtmlPathFromMidAndPid( NSArray* idArray );

